import axios from '@/common/plugins/Axios'

export default {
  // 根据code 获取token接口
  getJwtToken:
      (code: any) => {
        return axios.request({
          url: `/authorization/token`,
          method: 'get',
          params: {
            code
          }
        })
      },

  /**
   * 获取用户信息
   */
  getUser: (data: any) => {
    return axios.request({
      url: `/authorization/user`,
      method: 'get'
    })
  },

  // 关注列表
  getDigUser:(param: any)=>{
    return axios.request({
      url: `/userManage/getDigUser`,
      method: 'get',
      params: param
    })
  },
}